﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.Skins;
using DevExpress.LookAndFeel;
using DevExpress.UserSkins;
using DevExpress.XtraBars;
using DevExpress.XtraBars.Ribbon;
using DevExpress.XtraBars.Helpers;
using CNotebook;

namespace NotebookS2
{
    public partial class FND_ITM_DLVRY : RibbonForm
    {
        public FND_ITM_DLVRY()
        {
            InitializeComponent();
        }

        #region Properties
        public string ConnectionString { get; set; }
        public string CustomerCode { get; set; }
        public string ItemCode { get; set; }
        public string Description { get; set; }
        public string UOM { get; set; }
        public double UnitPrice { get; set; }

        List<string> _ItemCodes = new List<string>();

        public List<string> ItemCodes
        {
            get { return _ItemCodes; }
            set { _ItemCodes = value; }
        }
        #endregion

        #region Initialize DR Search Form

        void InitializeView()
        {
            lvwSearched.Clear();
            lvwSearched.View = View.Details;

            lvwSearched.LabelEdit = false;
            lvwSearched.AllowColumnReorder = false;
            lvwSearched.FullRowSelect = true;

            lvwSearched.GridLines = false;
            lvwSearched.Sorting = SortOrder.Ascending;

            lvwSearched.Columns.Add("Code", 100);
            lvwSearched.Columns.Add("Description", 200);
            lvwSearched.Columns.Add("Unit Measure", 100);
            lvwSearched.Columns.Add("Unit Price", 200);

        }

        #endregion


        private void FND_ITM_DLVRY_Load(object sender, EventArgs e)
        {
            cboSearch.SelectedIndex = 1;
        }

        private void btnSearch_Click(object sender, EventArgs e)
        {

        }
    }
}
